@app.get("/login")
async def login(response: Response,q: str=None):
    content='''

<body>
<h4>百度一下</h4>
<form name="input" action="test" method="get">
<input type="text" name="q">
<input type="submit" value="搜索">
</form>

</body>

    '''

    return HTMLResponse(content=email_input)
@app.get("/test/")

def create_cookie(response: Response,q: str=None):
    value=q+"@gi-de.com"
    if value in userlist:

        response.set_cookie(key="username", value=q+"@xxxx.com", expires=100000000)
   

        return "已登录，请关闭重新打开"
    else:
        return "未获授权，请联系管理员"